
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="refresh" content="30">
    <style type="text/css">
        html{overflow:hidden;}
        *{ margin:0; padding:0;}
        body { font:12px/1.8 Arial; color:#666;}
        h1.tit-h1 { font-size:38px; text-align:center; margin:30px 0 15px; color:#f60;}
        ul,li{ list-style:none;}
        .tab{ width:100%;}
        .tab-hd { background:#F93; overflow:hidden; zoom:1;}
        .tab-hd li{ float:left; width:89px; color:#fff; text-align:center; cursor:pointer; line-height: 35px;}
        .tab-hd li.active{ background:#F60;}
        .tab-bd li{display:none; padding:18px 0px; border:1px solid #ddd; border-top:0 none; font-size:12px;}
        .tab-bd li.thisclass{ display:list-item;font-size: 12px;}
        span {color:green;}
        tt {color:red;}
        td{margin-right:20px;}
        .kkk{margin-left:20px;}
        p {float:left;padding-right:20px;}
    </style>
</head>
<body>
<div class="wrap">
    <div class="tab">
        <ul class="tab-hd">
            <li class="active">螺纹钢</li><li>黄金</li><li>铜</li><li>热卷</li>
            <li>白银</li><li>铁矿石</li></ul>
        <ul class="tab-bd">
            <!-- 螺纹钢 -->
            <li class="thisclass">
                <script type="text/javascript" src="//hq.sinajs.cn/list=RB0,AG0,AU0,M0,CU0,HC0,I0,JM0,J0" charset="UTF-8"></script>
                <p id="demo1" class="kkk"></p>
                <p id="demo2"></p>
                <p id="demo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_RB0.split(",");
                    document.getElementById("demo1").innerHTML=elements[16];
                    document.getElementById("demo2").innerHTML=elements[10];
                    document.getElementById("demo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_RB0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/RB0.gif" />
                </div>
            </li>
            <!-- 螺纹钢 -->
            <!-- 黄金 -->
            <li>
                <p id="audemo1" class="kkk"></p>
                <p id="audemo2"></p>
                <p id="audemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_AU0.split(",");
                    document.getElementById("audemo1").innerHTML=elements[16];
                    document.getElementById("audemo2").innerHTML=elements[10];
                    document.getElementById("audemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_AU0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/AU0.gif" />
                </div></li>
            <!-- 黄金 -->
            <!-- 铜 -->
            <li>
                <p id="cudemo1" class="kkk"></p>
                <p id="cudemo2"></p>
                <p id="cudemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_CU0.split(",");
                    document.getElementById("cudemo1").innerHTML=elements[16];
                    document.getElementById("cudemo2").innerHTML=elements[10];
                    document.getElementById("cudemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_CU0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/CU0.gif" />
                </div></li>
            <!-- 铜 -->
            <!-- 热卷 -->
            <li>
                <p id="hcdemo1" class="kkk"></p>
                <p id="hcdemo2"></p>
                <p id="hcdemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_HC0.split(",");
                    document.getElementById("hcdemo1").innerHTML=elements[16];
                    document.getElementById("hcdemo2").innerHTML=elements[10];
                    document.getElementById("hcdemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_HC0.split(",");

                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/HC0.gif" />
                </div></li>
            <!-- 热卷 -->
            <!-- 白银 -->
            <li>
                <p id="agdemo1" class="kkk"></p>
                <p id="agdemo2"></p>
                <p id="agdemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_AG0.split(",");
                    document.getElementById("agdemo1").innerHTML=elements[16];
                    document.getElementById("agdemo2").innerHTML=elements[10];
                    document.getElementById("agdemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_AG0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/AG0.gif" />
                </div></li>
            <!-- 白银 -->
            <!-- 铁矿石 -->
            <li>
                <p id="idemo1" class="kkk"></p>
                <p id="idemo2"></p>
                <p id="idemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_I0.split(",");
                    document.getElementById("idemo1").innerHTML=elements[16];
                    document.getElementById("idemo2").innerHTML=elements[10];
                    document.getElementById("idemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_I0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/I0.gif" />
                </div></li>
            <!-- 铁矿石  -->
            <!-- 焦煤 -->
            <li>
                <p id="jmdemo1" class="kkk"></p>
                <p id="jmdemo2"></p>
                <p id="jmdemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_JM0.split(",");
                    document.getElementById("jmdemo1").innerHTML=elements[16];
                    document.getElementById("jmdemo2").innerHTML=elements[10];
                    document.getElementById("jmdemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_JM0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/JM0.gif" />
                </div></li>
            <!-- 焦煤   -->
            <!-- 焦炭 -->
            <li>
                <p id="jdemo1" class="kkk"></p>
                <p id="jdemo2"></p>
                <p id="jdemo3"></p>
                <script type="text/javascript">
                    var elements=hq_str_J0.split(",");
                    document.getElementById("jdemo1").innerHTML=elements[16];
                    document.getElementById("jdemo2").innerHTML=elements[10];
                    document.getElementById("jdemo3").innerHTML=elements[3];
                </script>
                <script type="text/javascript">
                    var elements=hq_str_J0.split(",");
                    zfa=elements[8]-elements[10]
                    zfb=elements[10]
                    zfcc=((zfa/zfb)*100).toFixed(2)
                    if(Number(zfcc) > 0){
                        document.write("<tt>" + "+" + zfcc + '%' +"</tt>");
                    }
                    if(Number(zfcc) < 0){
                        document.write("<span>" + zfcc + '%' +"</span>");
                    }
                </script>
                </br>
                <div style="text-align:center;">
                    <img src="//image.sinajs.cn/newchart/v5/futures/mins/J0.gif" />
                </div></li>
            <!-- 焦炭  -->
        </ul>
    </div>
</div>

<script src="/static/home/js/jquery.min.js"></script>
<script type="text/javascript">
    $(function(){
        function tabs(tabTit,on,tabCon){
            $(tabTit).children().hover(function(){
                $(this).addClass(on).siblings().removeClass(on);
                var index = $(tabTit).children().index(this);
                $(tabCon).children().eq(index).show().siblings().hide();
            });
        };
        tabs(".tab-hd","active",".tab-bd");
    });
</script>
</body>
</html>